﻿using Microsoft.EntityFrameworkCore;
using StudentsMngDemo.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace StudentsMngDemo
{
    public class SdtMngDbContext:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder options)
            => options.UseSqlServer(@"Data Source=DAWEN\YANGDAWEN;Database=StudentsMngDemoDb;UID=sa;PWD=Ydw123456");
        public DbSet<Student> Students { get; set; }
    }
}
